<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:replace="top::html" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

<body class="fixed hold-transition skin-blue">
    <div class="wrapper">
        <div th:replace="tophtml::html"></div>
        <div th:replace="left::html"></div>

        <div class="content-wrapper">
            <section class="content-header">
                <h1>
                    <span>添加项目联系人</span> 
                    <small>(<span style="color: red">*</span> 为必填项目)</small>
                </h1>
                <ol class="breadcrumb">
                    <li><a th:href="@{/index}"><i class="fa fa-dashboard"></i>用户中心</a></li>
                    <li><a th:href="@{/project/showQuery}"><i class="fa fa-dashboard"></i>项目管理</a></li>
                    <li><a href="">添加项目联系人</a></li>
                </ol>
            </section>

            <section class="content container-fluid">
                <form id="form1" th:action="@{/project/addContact}" method="POST" enctype="multipart/form-data">
                    <input type="hidden" th:value="${param.projectId}" name="projectId">
                    <div class="form-group">
                        <label>姓名</label>
                        <span style="color: red">*</span>
                        <p style="color: red;" th:text="${name}"></p>
                        <input type="text" class="form-control" name="name" required placeholder="Enter ...">
                    </div>
                    <div class="form-group">
                        <label>固定电话</label>
                        <p style="color: red;" th:text="${fixedPhone}"></p>
                        <input type="text" class="form-control contact" name="fixedPhone" placeholder="Enter ...">
                    </div>
                    <div class="form-group">
                        <label>手机</label>
                        <input type="text" class="form-control contact" name="tell" digits=true placeholder="Enter ...">
                    </div>
                    <div class="form-group">
                        <label>邮箱</label>
                        <input type="text" class="form-control contact" name="email" email=true placeholder="Enter ...">
                    </div>
                    <div class="form-group">
                        <label>微信</label>
                        <input type="text" class="form-control contact" name="wechat" placeholder="Enter ...">
                    </div>
                    <div class="form-group">
                        <label>其他联系方式</label>
                        <input type="text" class="form-control contact" name="otherContact" placeholder="Enter ...">
                    </div>
                    <div class="contact-hide">
	                    <div class="form-group">
	                        <label>性别</label>
	                        <div class="radio">
	                            <label>
	                                <input type="radio" name="sex" value="0" checked> 男
	                            </label>
	                        </div>
	                        <div class="radio">
	                            <label>
	                                <input type="radio" name="sex" value="1"> 女
	                            </label>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <label>专家来源</label>
	                        <span style="color: red">*</span>
	                        <p style="color: red;" th:text="${source}"></p>
	                        <select class="form-control" name="source">
	                            <option th:each="psd : ${projecSourcetDictiontryList}" th:value="${psd.pid}" th:text="${psd.worth}">网络资源</option>
	                        </select>
	                    </div>
	                    <div class="form-group">
	                        <label>专家类型</label>
	                        <span style="color: red">*</span>
	                        <p style="color: red;" th:text="${type}"></p>
	                        <select class="form-control" name="type">
	                            <option th:each="ptd : ${personTypeDictiontryList}" th:value="${ptd.pid}" th:text="${ptd.worth}">专家类型</option>
	                        </select>
	                    </div>
	                    <div class="form-group">
	                        <label>所属领域</label>
	                        <span style="color: red">*</span>
	                        <p style="color: red;" th:text="${researchField}"></p>
	                        <div class="checkbox" th:each="rfd : ${researchFieldDictiontryList}">
	                            <label>
	                                <input type="checkbox" name="researchField" th:value="${rfd.names}" th:text="${rfd.worth}" th:checked="${rfd.names == '7'}" required>
	                            </label>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <label>国内国外</label>
	                        <span style="color: red">*</span>
	                        <p style="color: red;" th:text="${domesticOrForeign}"></p>
	                        <div class="radio">
	                            <label>
	                                <input type="radio" name="domesticOrForeign" id="optionsRadios1" value="0" checked> 国内
	                            </label>
	                        </div>
	                        <div class="radio">
	                            <label>
	                                <input type="radio" name="domesticOrForeign" id="optionsRadios2" value="1"> 国外
	                            </label>
	                        </div>
	                    </div>
	                    <div class="form-group form-country">
	                        <label>国家</label>
	                        <span style="color: red">*</span>
	                        <p style="color: red;" th:text="${area}"></p>
	                        <select class="form-control form-area">
	                            <option value="-1">--选择国家--</option>
	                            <option th:each="list:${countryDictiontryList}" th:value="${list.pid}" th:text="${list.worth}"></option>
	                        </select>
	                    </div>
	                    <!-- 选择国内必须选地区 -->
	                    <div class="form-group form-area">
	                        <label>省</label>
	                        <span style="color: red">*</span>
	                        <p style="color: red;" th:text="${area}"></p>
	                        <select class="form-control form-area" id="provinceId">
	                            <!-- <option value="-1">--选择省--</option> -->
	                            <option th:each="list:${provinceDictiontryList}" th:value="${list.names}" th:text="${list.worth}"></option>
	                        </select>
	                    </div>
	                    <div class="form-group form-area">
	                        <label>市</label>
	                        <select class="form-control form-area" id="cityId">
	                            <option value="-1">--选择市--</option>
	                        </select>
	                    </div>
	                    <div class="form-group form-area">
	                        <label>区</label>
	                        <select class="form-control form-area" id="areaId">
	                            <option value="-1">--选择区--</option>
	                        </select>
	                    </div>
	                    <div class="form-group">
	                        <label>人才级别</label>
	                        <div class="checkbox" th:each="tld : ${talentLevelDictiontryList}">
	                            <label>
	                                <input type="checkbox" name="talentLevel" th:value="${tld.names}" th:text="${tld.worth}">
	                            </label>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <label>出生日期</label>
	                        <div class="input-group date">
	                            <div class="input-group-addon">
	                                <i class="fa fa-calendar"></i>
	                            </div>
		                        <input id="datepicker" type="text" class="form-control" name="birth" placeholder="Enter ...">
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <label>籍贯</label>
	                        <input type="text" class="form-control" name="birthPlace" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>附件</label>
	                        <input type="file" name="file">
	                    </div>
	                    <div class="form-group">
	                        <label>最高学历</label>
	                        <input type="text" class="form-control" name="maxEducation" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>毕业院校及所学专业</label>
	                        <input type="text" class="form-control" name="schoolAndMajor" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>单位</label>
	                        <input type="text" class="form-control" name="unit" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>职务(职称)</label>
	                        <input type="text" class="form-control" name="title" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>专业领域</label>
	                        <input type="text" class="form-control" name="professionaField" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>教育背景</label>
	                        <input type="text" class="form-control" name="education" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>工作经历</label>
	                        <input type="text" class="form-control" name="workExp" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>荣誉奖励</label>
	                        <input type="text" class="form-control" name="honorAward" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>科技成果</label>
	                        <input type="text" class="form-control" name="technica" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>个人简介</label>
	                        <textarea class="form-control" name="personInfo" placeholder="2000字以内"></textarea>
	                    </div>
	                    <div class="form-group">
	                        <label>备注1</label>
	                        <input type="text" class="form-control" name="remark1" placeholder="Enter ...">
	                    </div>
	                    <div class="form-group">
	                        <label>备注2</label>
	                        <input type="text" class="form-control" name="remark2" placeholder="Enter ...">
	                    </div>
	                    <a href="#0" class="cd-top cd-is-visible">Top</a>
                    </div>
                    <div class="form-group" style="text-align: center;">
	                	<input type="button" id="more" value="更多信息"/>
	                </div>
                    
                    <div class="box-footer">
                        <button type="submit" class="btn btn-primary">提交</button>
                        <button type="reset" class="btn btn-primary">重置</button>
                        <button type="button" class="btn btn-primary" onclick="window.history.go(-1)">返回</button>
                    </div>

                </form>
            </section>
        </div>
        <!-- Main Footer -->
        <div th:replace="footer::html"></div>
        <div class="control-sidebar-bg"></div>
    </div>
    <div th:replace="bottom::html" ></div>
    <script type="text/javascript" th:javascript="inline">
    	linkPerson('[[${param.projectId}]]', 1);
    </script>
</body>

</html>